package com.atguigu.springcloud.service;

import com.atguigu.springcloud.config.Result;
import com.atguigu.springcloud.entities.Payment;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 支付接口
 *
 * @author zhenyu
 * @since 2022-08-26
 */
public interface IPaymentService extends IService<Payment> {

    /**
     * 新增支付记录
     * @param payment
     * @return
     */
    public Result<String> create(Payment payment);

    /**
     * 查询支付记录
     * @param id
     * @return
     */
    public Payment getPaymentById(Long id);

}
